package simulator.queue;

import java.util.Collections;
import java.util.LinkedList;
import java.util.List;

public class ItemQueue 
{
	private final int id;
	private final List<Item> itens = Collections.synchronizedList(new LinkedList<Item>());
	
	public ItemQueue(int id) 
	{
		this.id = id;
	}

	public int getId() {
		return id;
	}

	public List<Item> getItens() {
		return itens;
	}
	
	public boolean isEmpty()
	{
		return itens.isEmpty();
	}
	
	public Item getNext()
	{
		return itens.iterator().next();
	}
}
